<?php 

class Topcmmchat_Component_Controller_Admincp_Admin extends Phpfox_Component
{
	public function process(){
    	$aSettings = Phpfox::getService('topcmmchat')->getSettings();
		$bFree = false;
		if ($aSettings['fc_extendserver'] == 0 || $aSettings['fc_extendserver'] == 1){
			$swfurl = Phpfox::getService('topcmmchat')->getClientUrl();
			$swfurl = str_ireplace('123flashchat.swf', 'admin_123flashchat.swf', $swfurl);
		}else {
			$bFree = true;
		}
		$this->template()->assign(array(
				'swfurl' => $swfurl,
				'client_url' => $aSettings['fc_client_loc'],
				'free' => $bFree
			)
		);
	}
}
?>
